package com.coursehub.exercise.service;

import com.coursehub.exercise.entity.FavoriteQuestionBank;

import java.util.List;

public interface FavoriteQuestionBankService {
    FavoriteQuestionBank create(String favoriteQuestionBankId, String userId, String courseId);
    void delete(String favoriteQuestionBankId);
    List<FavoriteQuestionBank> listByUser(String userId);
    List<FavoriteQuestionBank> listByUserAndCourse(String userId, String courseId);

    // relation with questions
    void addQuestion(String favoriteQuestionBankId, String questionId);
    void removeQuestion(String favoriteQuestionBankId, String questionId);
    List<String> listQuestionIds(String favoriteQuestionBankId);
}


